<%-- 
    Document   : the schedules of one project
    Created on : 2015-5
    Author     : cjh
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="front/css/home-page.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/adminProjectManagement.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/jquery.mCustomScrollbar.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/articleCenter.css"/>
        <script src="front/js/jquery-1.11.2.js"></script>
        <script src="front/js/Velocity.js"></script>
        <script src="front/js/jquery.mCustomScrollbar.concat.min.js"></script>
        <script src="front/js/home-page.js"></script>
        <script src="front/js/adminProjectManagement.js"></script>
        <title>物品管理中心</title>
    </head>
    <body class="all-page adminProjectManagement">
        <jsp:include page="head.jsp"></jsp:include>

            <div class="articleDisplay">
                
                <div class="title">项目管理中心
                    <form class="addProject1" action="adminAddGoods" method="get"><input type="submit" value="添加"></form>
                    
                    <form action="adminGoodsCenter" method="get">
                        <input id="search" name="search" type="text" placeholder="查找（支持空格多关键字查找）"/>
                    </form>

                </div>
                
                <div class="content">
                    <table>
                        <thead>
                            <tr><th>物品名称</th><th>借出时间</th><th>应还时间</th><th>借取人</th><th>操作</th><th> </th></tr>
                        </thead>

                        <tbody>
                        <c:forEach items="${listUserGoodsDTO}" var="userGoodsDTO">
                            <tr>
                                <td class="projectName">${userGoodsDTO.goodsName}</td>
                                <td>${userGoodsDTO.lendDate}</td>
                                <td>${userGoodsDTO.returnDate}</td>
                                <td>${userGoodsDTO.userName}</td>
                                <td>
                                    <form action="adminGoodsChact" name="" method="get">
                                        <input type="hidden" name="isReturn" value="${userGoodsDTO.isReturn}">
                                        <input type="hidden" name="gid" value="${userGoodsDTO.gid}">
                                        <input type="hidden" name="bid" value="${userGoodsDTO.bid}">
                                        <div class="adjust">
                                            <input type ="submit" class="detailInformation" value="查看/修改"/>
                                        </div>
                                    </form>
                                </td>
                                <td>
                                    <button>删除</button>
                                    <input type="hidden" value="${userGoodsDTO.gid}" name="pid"/>
                                </td>
                            </tr>
                        </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>

        <div class="borrow">
            <p class="title">删除</p>
            <p class="tip">是否确认删除？<span></span></p>
            <form action="adminDelGoods" method="POST">
                <input class="getID" type="hidden" value="" name="id"/>
                <div class="adjust">
                    <input type="submit" value="确认"/>
                    <input type="button" value="取消"/>						
                </div>
            </form>
        </div>

        <div class="returnMask"></div>

        <p class="overflowTip"></p>
    </body>
</html>
